package org.apache.http.client.fluent;

import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class Form
{
  private final List<NameValuePair> params;

  public static Form form()
  {
    return new Form();
  }

  Form()
  {
    this.params = new ArrayList();
  }

  public Form add(String name, String value) {
    this.params.add(new BasicNameValuePair(name, value));
    return this;
  }

  public List<NameValuePair> build() {
    return new ArrayList(this.params);
  }
}